package com.cloud.pole.shop.service.goods.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.shop.biz.goods.ShopGoodsAttrBiz;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsAttr;
import com.cloud.pole.shop.service.goods.GoodsAttrService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class GoodsAttrServiceImpl implements GoodsAttrService {

	@Autowired
	private ShopGoodsAttrBiz shopGoodsAttrBiz;
	
	@Override
	public void insertGoodsAttr(ShopGoodsAttr shopGoodsAttr) {
		shopGoodsAttrBiz.insertInGoodsAttr(shopGoodsAttr);
	}

	@Override
	public List<ShopGoodsAttr> selectByGoodsId(Integer goodsId) throws Exception {
		
		return shopGoodsAttrBiz.selectByGoodsAttr(goodsId);
	}

	@Override
	public void deleteGoodsAttr(Integer goodsId) throws Exception {
		shopGoodsAttrBiz.delete(goodsId);
		
	}

}
